package com.winit.schedule.core.repository.query;

import com.winit.schedule.core.repository.constants.LogType;
import com.winit.schedule.core.repository.entity.UserLogEntity;

import java.util.List;

/**
 * Created by jianke.zhang on 2017/5/5.
 */
public class UserLogQuery extends UserLogEntity{
    private long              startTime;

    private long              endTime;

    private String            ip;

    private List<LogType> logTypes;

    private boolean           hasTaskTracker;

    private boolean           hasTaskId;

    private int               offset           = 1;

    private int               limit            = 10;

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public List<LogType> getLogTypes() {
        return logTypes;
    }

    public void setLogTypes(List<LogType> logTypes) {
        this.logTypes = logTypes;
    }

    public boolean isHasTaskTracker() {
        return hasTaskTracker;
    }

    public void setHasTaskTracker(boolean hasTaskTracker) {
        this.hasTaskTracker = hasTaskTracker;
    }

    public boolean isHasTaskId() {
        return hasTaskId;
    }

    public void setHasTaskId(boolean hasTaskId) {
        this.hasTaskId = hasTaskId;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }
}
